import requests
from lxml import etree
import multiprocessing


headers = {

}
def get_areas():
    pass
def get_house(name,url):
    pass
if __name__ == '__main__':
    url = "https://wh.lianjia.com/ershoufang/"

    #获取区名 和 url
    a_list = get_areas(url)

    p_list = []
    for area in a_list:
        name = area.get('name')
        url = area.get('url')
        #异步 创建进程
        p = multiprocessing.Process(target=get_house,args=(name,url,))
        p.start()
        p_list.append(p)

